from pygame.locals import *
from pygameExt import *
import os

class keyListener:
    def __init__(self, key, function):
        self.key = key
        self.function = function
        
class screeninherit:
    def __init__(self):
        print "newscreen"

        
    def reportKey(self, key):
        curkey = 0
        for curkey in self.keylisteners:
           if (key == curkey.key):
                  curkey.function()
                 
    def printInfo(self):
        print "name:"+screenname
        print "type:"+screentype      
